package com.leyou.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author huangxin
 * @date 2019/4/19-20:01
 */
@Data
@AllArgsConstructor
public class PageResult <T>{
    private Long total;//总条数
    private Integer totalPage;//总页数
    private List<T> items;

    public PageResult(Long total, List<T> items) {
        this.total = total;
        this.items = items;
    }
    public PageResult() {
    }
}
